package com.shadow.mall.order.remote;

import com.shadow.mall.address.domain.dto.AddressDTO;
import com.shadow.mall.address.domain.query.AddressQuery;
import com.shadow.mall.common.core.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient("shadow-mall-address")
public interface AddressService {

    @RequestMapping("/address/queryAddress")
    JsonResult<AddressDTO> queryAddress(AddressQuery query);
}
